package com.ktwlsoft.archivemanage.payload.study.studyClass;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.ArrayList;
import java.util.List;

@Data
public class ClassGroupPayload {

    private Long id;

    @NotNull
    private String purpose;

    @Size(max = 20)
    @NotNull
    private String name;

    private List<ClassContentPayload> classContent = new ArrayList<>();

    public ClassGroupPayload() {
    }

    public ClassGroupPayload(@NotNull String purpose, @Size(max = 20) @NotNull String name) {
        this.purpose = purpose;
        this.name = name;
    }
}
